package com.kafka.service.strategy.impl;

import com.kafka.service.strategy.FactorStrategy;
import com.kafka.service.strategy.Handel;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @descriptions:
 * @author: yunqiang
 * @date: 2022/1/5 15:15
 */
@Component
@Slf4j
public class LiSi  implements Handel {

    @Override
    public void distributionCarMsg(String msg) {

        log.info("李四收到消息为："+msg);
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        FactorStrategy.register("01",this);
    }
}
